package com.ruoyi.bizsys.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 延期借据对象 loan_iou_deferred
 *
 * @author wqg
 * @date 2022-06-09
 */

@Data
public class LoanIouDeferred extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;


    /**
     * 客户号
     */

    @Excel(name = "客户号")

    private String custNo;


    /**
     * 子借据流水号
     */
    @Excel(name = "子借据流水号")
    private Long loanSerialDeferredNo;

    /**
     * 延期还款订单流水号
     */
    private long loanDeferOrderNo;

    /**
     * 贷款流水号
     */

    @Excel(name = "贷款流水号")

    private String loanSerialNo;

    /**
     * 延期借据对应的延期包ID
     */
    private long productDeferredId;



    /**
     * 利(息)率
     */

    @Excel(name = "利(息)率")

    private BigDecimal interestRate;


    /**
     * 服务费费率
     */

    @Excel(name = "服务费费率")

    private BigDecimal serviceRate;

    /**延期天数**/
    private Integer periodNum;

    /**
     * 还款日期
     */

    @Excel(name = "还款日期")

    private String repayDate;


    /**
     * 服务费
     */

    @Excel(name = "服务费")

    private BigDecimal serviceFee;


    /**
     * 已还服务费
     */

    @Excel(name = "已还服务费")

    private BigDecimal repaidServiceFee;


    /**
     * 总利息
     */

    @Excel(name = "总利息")

    private BigDecimal interestFee;


    /**
     * 已还总利息
     */

    @Excel(name = "已还总利息")

    private BigDecimal repaidInterestFee;


    /**
     * 合同编号
     */

    @Excel(name = "合同编号")

    private String contractNo;


    /**
     * 借据状态和主借据一至
     */

    @Excel(name = "借据状态和主借据一至")

    private Integer status;


    /**
     * 状态0失效1启用
     */

    @Excel(name = "状态0失效1启用")

    private String state;


    /**
     * 备注
     */

    @Excel(name = "备注")

    private String remark;


    /**
     * 创建者
     */

    @Excel(name = "备注")

    private String createBy;


    /**
     * 创建时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "备注", width = 30, dateFormat = "yyyy-MM-dd")

    private Date createTime;


    /**
     * 更新者
     */

    @Excel(name = "备注")

    private String updateBy;


    /**
     * 更新时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "备注", width = 30, dateFormat = "yyyy-MM-dd")

    private Date updateTime;

}